package com.crm.common.model.Enum.csd;

/**
 * @author yincuimei
 * @Date 2021/12/9 14:58
 * 订单完成表【产品状态】
 */
public enum FinishOrderProductEnum {
    PRODUCT_STATUS_NO_RECEIVED("0","未回款"),
    PRODUCT_STATUS_REFUND("1","退款"),
    PRODUCT_STATUS_PART_RECEIVED("2","部分回款"),
    PRODUCT_STATUS_RECEIVED("3","已回款"),
    PRODUCT_STATUS_NULLIFY("4","作废"),
    PRODUCT_STATUS_EXCHANGE("5","已兑换"),
    PRODUCT_STATUS_ADVANCE_RECEIVED("6","预回款"),
    PRODUCT_STATUS_EXCHANGE_PRODUCT("7","兑换产品");

    private String productStatus;
    private String productStatusText;

    FinishOrderProductEnum(String productStatus,String productStatusText) {
        this.productStatus = productStatus;
        this.productStatusText = productStatusText;
    }

    public static String getProductStatusText(String productStatus) {
        for (FinishOrderProductEnum finishOrderProductEnum : values()) {
            if(finishOrderProductEnum.productStatus.equals(productStatus)){
                return finishOrderProductEnum.productStatusText;
            }
        }
        return "";
    }
}
